package chapter02;

public class Traning {
    public static void main(String[] args) {
        for (int i = 100; i <=999 ; i++) {
            int b = i/100;
            int s = i%100/10;
            int g = i%100%10;
            if (b*b*b+s*s*s+g*g*g ==i) {
                System.out.println(i);
            }
        }
    }
}
